package com.wego.mapper;

import com.wego.domain.entity.Comment;
import com.wego.domain.query.CommentQuery;
import com.wego.domain.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKeyIn(List<Integer> ids);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comment record);

    int batchInsert(@Param("list") List<Comment> list);

    List<CommentVO> selectWithCondition(CommentQuery commentQuery);

    List<CommentVO> selectWithConditionWithoutPid(CommentQuery commentQuery);
    /**
     * 根据父级id查询子级分类
     * @param CommentQuery
     * @return
     */
    List<CommentVO> selectCommentByPid(CommentQuery CommentQuery);

    CommentVO selectCommentVOByPrimaryKey(Integer id);
}
